package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.CpsCredit;
import cn.powertime.evaluation.mapper.CpsCreditMapper;
import cn.powertime.evaluation.service.CpsCreditService;
import cn.powertime.evaluation.vo.AppCreditVo;
import cn.powertime.evaluation.vo.WebChapterClassifyVo;
import cn.powertime.evaluation.vo.WebKnowledgeClassifyVo;
import cn.powertime.evaluation.vo.WebMaterialsClassifyVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CpsCreditServicelmpl extends ServiceImpl<CpsCreditMapper,CpsCredit> implements CpsCreditService {

    @Autowired
    private  CpsCreditMapper cpsCreditMapper;
    @Override
    public boolean ownSave(CpsCredit menu) {
        return save(menu);
    }

    @Override
    public boolean ownUpdateById(CpsCredit menu) {
        return updateById(menu);
    }

    @Override
    public List<WebChapterClassifyVo> selectChapter(AppCreditVo vo) {
        return cpsCreditMapper.selectChapter(vo);
    }

    @Override
    public List<WebChapterClassifyVo> selectKnowledge(AppCreditVo vo) {
        return cpsCreditMapper.selectKnowledge(vo);
    }

    @Override
    public List<WebChapterClassifyVo> selectMaterials(AppCreditVo vo) {
        return cpsCreditMapper.selectMaterials(vo);
    }


}
